﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Day02PM
{
    public class EmployeeManage
    {
        
        public List<Employee> allEmployee = null;
        public float GetTotalSalary()
        {
            float totalSalary = 0;
            foreach (Employee item in allEmployee)
            {
                //调用父类虚方法
                totalSalary += item.CalculateSalary();
            }
            return totalSalary;
        }
    }
}